package com.yun.fallback;

import com.atguigu.springcloud.entity.CommonResult;
import com.atguigu.springcloud.entity.Payment;
import com.yun.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @Author: fxy
 * @Date: 2022/08/15/17:55
 * @Description:
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id)
    {
        return new CommonResult<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
